﻿@{Layout = "~/Views/Shared/_Layout.cshtml";}
@{var booking = ViewData.Model;
    <h1>Delete Booking</h1>
    <p class="Subtitle">You are about to cancel a booking. Are you sure?</p>
    <p class="BodyText">Here is some information about the booking you are trying to cancel: </p>
    <table class="Info">
        <tr>
            <th>Course</th>
            <td>@booking.CourseInstance.Course.ID (@booking.CourseInstance.ID)</td>
        </tr>
        <tr>
            <th>Course</th>
            <td>@booking.Room.ID</td>
        </tr>
        <tr>
            <th>Start</th>
            <td>@booking.StartDate</td>
        </tr>
        <tr>
            <th>End</th>
            <td>@booking.EndDate</td>
        </tr>
    </table>
    <form method="post" action="@Href("~/Booking/Delete/" + booking.ID)">
        <input class="Button" type="submit" name="inConfirm" value="Yes, I want to cancel this booking" style="font-weight:bold;" />
        <input class="Button" type="submit" name="inConfirm" value="No, Return me to where I was" />
    </form>
}